package com.monkey.controller;

import com.monkey.service.LoginService;
import com.monkey.vo.Results;
import com.monkey.vo.params.LoginParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author：monkey-L
 * @description: .
 * @date: 11:21 2021/10/5
 */
@RestController
@RequestMapping("login")
public class LoginController {

    @Autowired
    private LoginService loginService;

    @PostMapping
    public Results login(@RequestBody LoginParam loginParam){
        return loginService.login(loginParam);
    }
}
